package baseFx.tests.database;

import baseFx.database.MultipleReader;
import baseFx.database.SqlParam;
import baseFx.database.jdbc.AbstractJDBCSql;
import baseFx.database.query.PageSet;
import org.mockito.Mock;
import org.mockito.Mockito;

import javax.sql.DataSource;
import java.sql.*;
import java.util.List;
import java.util.Map;
import java.util.Properties;
import java.util.concurrent.Executor;

public class MockJDBCSql extends AbstractJDBCSql {
    public MockJDBCSql() {
        super(Mockito.mock(DataSource.class));
    }

    @Override
    protected PreparedStatement createStatement(Connection connection, SqlParam param, int fetchSize) {
        return null;
    }

    @Override
    protected MultipleReader onMultiple(SqlParam param) {
        return null;
    }

    @Override
    protected <T> void onPager(Class<T> clazz, PageSet pageSet, SqlParam param) {

    }

    @Override
    protected <T> List<T> onQuery(Class<T> clazz, SqlParam param) {
        return null;
    }

    @Override
    protected int onExecute(SqlParam param) {
        return 0;
    }

    @Override
    public String escapeField(String field) {
        return "`" + field + "`";
    }
}
